package com.wao.menu.service.dto;

import java.io.Serializable;
import java.util.LinkedHashSet;

/**
 * ItemTreeDTO class.
 *
 * @author Arthur.
 */
public class ItemTreeDTO implements Serializable {

    private Long id;

    private String name;

    private String image;

    private String url;

    private String description;

    private Long parentId;

    private LinkedHashSet<ItemTreeDTO> children = new LinkedHashSet<>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public LinkedHashSet<ItemTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(LinkedHashSet<ItemTreeDTO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "ItemTreeDTO{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", image='" + image + '\'' +
            ", url='" + url + '\'' +
            ", description='" + description + '\'' +
            '}';
    }
}
